<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'eova-icon523',plain:true" onclick="eova_export()">
一键搞定
</a>
<script type="text/javascript">
var eova_export = function() {
	var $grid = $('#${gridId}');
    var rows = $grid.datagrid('getSelections');
    var num = rows.length;
    if (num == "0") {
    	$.slideMsg("请至少选择一条记录！");
        return;
    }
    var vals = [];
    for (var i = 0; i < rows.length; i++) { //组成一个字符串，ID主键用逗号隔开
    	vals.push(rows[i]['table_name']);
    }
    
    var tables = vals.join(',');

	$.messager.confirm('请确认', '是否要一键搞定?<br><b style="color:blue;" title="'+ tables +'">查看详情</b>', function(o) {
		if (o) {
			$.syncPost('/vip/doImport', {
				tables : tables
			}, function(result, status) {
				if (result.success) {
					$.slideMsg("亲爱的上帝,我帮您通通搞定了！");
					$.widgetReLoad($widget);
				} else {
					$.alert($, result.msg);
				}
			});
			$.widgetClearSelections($widget);
		}
	});
	
};
</script>